﻿//===============================================================================
// CB Stock Data Library
//===============================================================================
// Copyright © CB.  All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS 
// OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 
// WITH THE CODE OR THE USE OR OTHER DEALINGS IN THE CODE.
//===============================================================================
using System;

namespace CB.Stock.Core
{
    public enum StockDataType
    {
        [StockDataValueType(typeof(double))]
        SalePrice /*= 0x1*/,
        [StockDataValueType(typeof(double))]
        PaidPrice /*= 0x2*/,
        [StockDataValueType(typeof(string))]
        Symbol /*= 0x4*/,
        [StockDataValueType(typeof(DateTime))]
        LastTradeDate  /*= 0x8*/,
        [StockDataValueType(typeof(double))]
        LastTradePrice /*= 16*/,
        [StockDataValueType(typeof(double))]
        Open /*= 32*/,
        /// <summary>
        /// this is only for history data, don't use it in CurrentData
        /// </summary>
        [StockDataValueType(typeof(double))]
        HighPrice /*= 64*/,
        /// <summary>
        /// this is only for history data, don't use it in CurrentData
        /// </summary>
        [StockDataValueType(typeof(double))]
        LowPrice /*= 128*/,
        [StockDataValueType(typeof(Int64))]
        Volume /*= 256*/,
        /// <summary>
        /// Special Big Order Diff
        /// </summary>
        [StockDataValueType(typeof(double))]
        VolumeTDX /*= 512*/,
        /// <summary>
        /// Big Order Diff
        /// </summary>
        [StockDataValueType(typeof(double))]
        VolumeDDX,
        /// <summary>
        /// Middle Order Diff
        /// </summary>
        [StockDataValueType(typeof(double))]
        VolumeZDX,
        /// <summary>
        /// Small Order Diff
        /// </summary>
        [StockDataValueType(typeof(double))]
        VolumeXDX,
        [StockDataValueType(typeof(int))]
        BBD,
        [StockDataValueType(typeof(double))]
        DDX,
        [StockDataValueType(typeof(double))]
        TurnoverRate
    }
}
